<admintpl file="headerEx" />
<title>{:L('TABLE_MODEL_LISTS')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />
</head>

<!-- Placed js at the end of the document so the pages load faster -->
<body class="sticky-header">
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li>
									<a  href="{:leuu('Admin/Model/index')}">
										<i class="fa fa-th-list"></i> {:L("TABLE_MODEL_LISTS")}
									</a>
								</li>
								<li  class="active">
									<a  href="{:leuu('Admin/ModelField/index',array('model_id'=>$_GET['model_id']))}">
										<i class="fa fa-bars"></i> 字段列表
									</a>
								</li>
								<li>
									<a  href="{:leuu('Admin/ModelField/add',array('model_id'=>$_GET['model_id']))}">
										<i class="fa fa-plus"></i> 添加字段
									</a>
								</li>
							</ul>
						</header>
						<div class="panel-body">
							<section id="no-more-tables">
								<table class="table table-bordered table-hover table-condensed cf">
									<thead class="cf">
									<tr>
										<th>ID</th>
										<th>字段名</th>
										<th>字段标题</th>
										<th class="numeric">数据类型</th>
										<th class="numeric">备注</th>
										<th class="numeric">状态</th>
										<th class="numeric">{:L("TABLE_MODEL_OPERATE")}</th>
									</tr>
									</thead>
									<tbody>
									<foreach name="fields" item="vo">
										<tr>
											<td data-title="ID">{$key+1}</td>
											<td data-title="{:L('TABLE_MODEL_NAME')}">{$vo.column_name}</td>
											<td data-title="{:L('TABLE_MODEL_TABLE_NAME')}">{$vo.column_comment}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_EXTEND_NAME')}">{$vo.column_type}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_IS_EXTEND')}">{$vo.remark}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_LIST_TYPE')}">启用</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_OPERATE')}">{$vo.operate}
										</tr>
									</foreach>
									<volist name="lists" id="vo">
										<tr>
											<td data-title="ID">{$vo.id}</td>
											<td data-title="{:L('TABLE_MODEL_NAME')}">{$vo.name}</td>
											<td data-title="{:L('TABLE_MODEL_TABLE_NAME')}">{$vo.title}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_EXTEND_NAME')}">{$vo.type}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_IS_EXTEND')}">{$vo.remark}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_LIST_TYPE')}">{$vo.status}</td>
											<td class="numeric" data-title="{:L('TABLE_MODEL_OPERATE')}">{$vo.operate}
										</tr>
									</volist>
									</tbody>
								</table>
							</section>
							<div class="col-md-12 text-center clearfix">
								{$page}
							</div>
						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->
	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->
	</div>
	<!-- main content end-->
</section>

<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>

<!--common scripts for all pages-->
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>

</body>
</html>